package com.fadadianqi.goods.dao;

import com.fadadianqi.commons.BaseDAO;
import com.fadadianqi.goods.model.Category;
import com.yeqiangwei.commons.util.Pagination;

import java.util.List;

/**
 * @author aroot
 */
public interface CategoryDAO extends BaseDAO<Category> {

    List<Category> findAll();

    Category getByName(String name);

    List<Category> findByFirstLetter(String flt, Pagination pagination);

    int countByFirstLetter(String flt);

}
